.class public Lcn/cheln/support/adapter/ListenerBox;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnClickListener;
.implements Landroid/view/View$OnLongClickListener;
.implements Landroid/view/View$OnTouchListener;
.implements Landroid/widget/CompoundButton$OnCheckedChangeListener;


# instance fields
.field public a:Ljava/util/Map;

.field private b:Lcn/cheln/support/adapter/MapAdapter;


# direct methods
.method public constructor <init>(Lcn/cheln/support/adapter/MapAdapter;Lcn/cheln/support/adapter/c;)V
    .locals 2

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    iput-object v0, p0, Lcn/cheln/support/adapter/ListenerBox;->a:Ljava/util/Map;

    iput-object p1, p0, Lcn/cheln/support/adapter/ListenerBox;->b:Lcn/cheln/support/adapter/MapAdapter;

    iget-object v0, p0, Lcn/cheln/support/adapter/ListenerBox;->a:Ljava/util/Map;

    iget v1, p2, Lcn/cheln/support/adapter/c;->a:I

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-interface {v0, v1, p2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    return-void
.end method


# virtual methods
.method public final a()Lcn/cheln/support/adapter/MapAdapter;
    .locals 1

    iget-object v0, p0, Lcn/cheln/support/adapter/ListenerBox;->b:Lcn/cheln/support/adapter/MapAdapter;

    return-object v0
.end method

.method public final a(Lcn/cheln/support/adapter/c;)V
    .locals 2

    iget-object v0, p0, Lcn/cheln/support/adapter/ListenerBox;->a:Ljava/util/Map;

    iget v1, p1, Lcn/cheln/support/adapter/c;->a:I

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-interface {v0, v1, p1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    return-void
.end method

.method public onCheckedChanged(Landroid/widget/CompoundButton;Z)V
    .locals 3

    const/4 v2, 0x3

    iget-object v0, p0, Lcn/cheln/support/adapter/ListenerBox;->a:Ljava/util/Map;

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcn/cheln/support/adapter/ListenerBox;->a:Ljava/util/Map;

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcn/cheln/support/adapter/c;

    invoke-virtual {v0, p1, p0}, Lcn/cheln/support/adapter/c;->a(Landroid/view/View;Lcn/cheln/support/adapter/ListenerBox;)V

    :cond_0
    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 3

    const/4 v2, 0x0

    iget-object v0, p0, Lcn/cheln/support/adapter/ListenerBox;->a:Ljava/util/Map;

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcn/cheln/support/adapter/ListenerBox;->a:Ljava/util/Map;

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcn/cheln/support/adapter/c;

    invoke-virtual {v0, p1, p0}, Lcn/cheln/support/adapter/c;->a(Landroid/view/View;Lcn/cheln/support/adapter/ListenerBox;)V

    :cond_0
    return-void
.end method

.method public onLongClick(Landroid/view/View;)Z
    .locals 3

    const/4 v2, 0x1

    iget-object v0, p0, Lcn/cheln/support/adapter/ListenerBox;->a:Ljava/util/Map;

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcn/cheln/support/adapter/ListenerBox;->a:Ljava/util/Map;

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcn/cheln/support/adapter/c;

    invoke-virtual {v0, p1, p0}, Lcn/cheln/support/adapter/c;->a(Landroid/view/View;Lcn/cheln/support/adapter/ListenerBox;)V

    :cond_0
    const/4 v0, 0x0

    return v0
.end method

.method public onTouch(Landroid/view/View;Landroid/view/MotionEvent;)Z
    .locals 3

    const/4 v2, 0x2

    const-string v0, ""

    const-string v1, "onTouch --------------- "

    invoke-static {v0, v1}, Lcn/cheln/support/app/c;->a(Ljava/lang/String;Ljava/lang/String;)V

    iget-object v0, p0, Lcn/cheln/support/adapter/ListenerBox;->a:Ljava/util/Map;

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcn/cheln/support/adapter/ListenerBox;->a:Ljava/util/Map;

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcn/cheln/support/adapter/c;

    invoke-virtual {v0, p1, p0}, Lcn/cheln/support/adapter/c;->a(Landroid/view/View;Lcn/cheln/support/adapter/ListenerBox;)V

    :cond_0
    const/4 v0, 0x0

    return v0
.end method
